package org.studiox.graph.runtime.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RuntimeConfig {

  @Value("${graph.gremlin.enabled:false}")
  private boolean graphGremlinEnabled;

  @Value("${graph.gremlin.port:8082}")
  private Integer graphGremlinPort;

  @Value("${database.embedded.enabled:false}")
  private boolean databaseEmbeddedEnabled;

  @Value("${database.embedded.port:13306}")
  private Integer databaseEmbeddedPort;

  @Value("${database.embedded.file:mysql_ddl.sql}")
  private String databaseEmbeddedFile;

  @Value("${database.embedded.schema:test}")
  private String databaseEmbeddedSchema;

  public boolean isGraphGremlinEnabled() {
    return graphGremlinEnabled;
  }

  public void setGraphGremlinEnabled(boolean graphGremlinEnabled) {
    this.graphGremlinEnabled = graphGremlinEnabled;
  }

  public Integer getGraphGremlinPort() {
    return graphGremlinPort;
  }

  public void setGraphGremlinPort(Integer graphGremlinPort) {
    this.graphGremlinPort = graphGremlinPort;
  }

  public boolean isDatabaseEmbeddedEnabled() {
    return databaseEmbeddedEnabled;
  }

  public void setDatabaseEmbeddedEnabled(boolean databaseEmbeddedEnabled) {
    this.databaseEmbeddedEnabled = databaseEmbeddedEnabled;
  }

  public Integer getDatabaseEmbeddedPort() {
    return databaseEmbeddedPort;
  }

  public void setDatabaseEmbeddedPort(Integer databaseEmbeddedPort) {
    this.databaseEmbeddedPort = databaseEmbeddedPort;
  }

  public String getDatabaseEmbeddedFile() {
    return databaseEmbeddedFile;
  }

  public void setDatabaseEmbeddedFile(String databaseEmbeddedFile) {
    this.databaseEmbeddedFile = databaseEmbeddedFile;
  }

  public String getDatabaseEmbeddedSchema() {
    return databaseEmbeddedSchema;
  }

  public void setDatabaseEmbeddedSchema(String databaseEmbeddedSchema) {
    this.databaseEmbeddedSchema = databaseEmbeddedSchema;
  }
}
